class VideoCommentsController < VideosController
  #before_filter :ensure_authenticated
  
  def destroy
    @comment = Comment.find(params[:id])
    @video = Video.find(params[:video_id])
    raise Webapp::WrongAuthenticatedUser if @comment.user.id!= @current_user.id and !@current_user.admin
    @comment.destroy
    redirect_to video_url(@video)
  
  end
end
